﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Odn.Dependency
{
    public class IocManager
    {
        public static IIocContainer AddFacility<TFacility>(Func<TFacility, IIocContainer> onCreate)
            where TFacility : IContainerFacility
        {
            var instance = onCreate(default(TFacility));
            Instance = instance;
            return instance;
        }

        public static IIocContainer Instance { get; private set; }
    }
}
